package ua.khpi.si.kit49.diploma.db.dao;

import java.util.List;

import ua.khpi.si.kit49.diploma.db.dto.City;
import ua.khpi.si.kit49.diploma.db.dto.Connection;

/**
 * 
 * Interface for dao for connections
 * 
 * @author netstalk3r
 * 
 */
public interface ConnectionDAO {

	/**
	 * method for getting all Connections
	 * 
	 * @return list with Connections
	 */
	List<Connection> getAllConnection();

	/**
	 * method for getting Connection by id
	 * 
	 * @param id
	 *            of Connection to get
	 * @return Connection with current id
	 */
	Connection getConnectionById(Integer id);

	/**
	 * method for getting connection by start point and finish point
	 * 
	 * @param start
	 *            start point
	 * @param finish
	 *            finish point
	 * @return current connection
	 */

	Connection getConnectionByStartAndFinish(City start, City finish);

}
